import { advanceCustomerType, advanceOrgsType, advanceReceiverType, advanceSenderType } from './advance';
export const config = [
    {
        name: '货主订单号', // 或者 label
        value: 'customerOrderNo', // 或者 prop
        type: 'input', // 这是匹配控件的属性
        isFixed: true, // （search-box）是否固定在前台
        isFussy: true, // 是否具有模糊搜索按钮
        span: 6, // 匹配大小
    },
    {
        name: '地址',
        value: 'location',
        type: 'addressSelect',
        placeholder: '地址',
        config: {
            checkStrictly: true,
        },
        isFixed: false,
        minLayers: 3,
        showNoChoice: true,
        tabsAddress: true,
        span: 5,
    },
    {
        name: '订单状态',
        value: 'orderStatus',
        type: 'select',
        isFixed: true,
        multiple: true,
        span: 4,
        optionsKey: ['O_ORDER_STATUS', 'O_T_TASK_STATUS'],
    },
    {
        name: '创建时间',
        value: 'createTimeRange',
        type: 'datetimerange',
        isFixed: true,
        span: 8,
    },
    // 高级搜索
    {
        name: '订单号',
        value: 'orderNo',
        type: 'input',
    },
    {
        ...advanceOrgsType,
        name: '组织架构',
        value: 'siteName',
        type: 'advance',
    },
    {
        ...advanceCustomerType,
        name: '货主',
        value: 'customerName',
        type: 'advance',
    },
    {
        name: '审核状态',
        value: 'excuteStatus',
        type: 'select',
        optionsKey: 'LCP_EXCUTE_STATUS',
    },
    {
        name: '订单异常状态',
        value: 'exceptionType',
        type: 'select',
        optionsKey: 'LCP_ORDER_EXCEPTION_TYPE',
    },
    {
        ...advanceSenderType,
        name: '发货单位',
        value: 'senderName',
        type: 'advance',
    },
    {
        name: '发货单位类型',
        value: 'senderType',
        type: 'input',
    },
    {
        name: '发货地址',
        value: 'senderAddrCode',
        config: {
            checkStrictly: true,
        },
        type: 'addressSelect',
    },
    {
        ...advanceReceiverType,
        name: '收货单位',
        value: 'receiverName',
        type: 'advance',
        width: 100,
    },
    {
        name: '收货单位类型',
        value: 'receiverType',
        type: 'input',
    },
    {
        name: '收货地址',
        value: 'receiverAddrCode',
        type: 'addressSelect',
        config: {
            checkStrictly: true,
        },
    },
    {
        name: '订单类型',
        value: 'orderType',
        type: 'select',
        optionsKey: 'ORDER_TYPE',
    },
];
